/*
Config.go 配置文件
*/

package config

type Config struct {
	Database DatabaseConfig
	Server   ServerConfig
}

type DatabaseConfig struct {
	DSN string
}

type ServerConfig struct {
	Port string
}

func Load() *Config {
	return &Config{
		Database: DatabaseConfig{
			DSN: "root:root@tcp(localhost:13366)/user?charset=utf8mb4&parseTime=True&loc=Local",
		},
		Server: ServerConfig{
			Port: ":9099",
		},
	}
}
